import request from '@/utils/request'

export function getConfigsByKey(data) {
  return request({
    url: '/rangeBuild/config/getConfigsByKey',
    method: 'get',
    params: data
  })
}

export function getTaskPoolInfo() {
  return request({
    url: '/rangeBuild/config/getTaskPoolInfo',
    method: 'get'
  })
}

export function querySystemConfigs(data) {
  return request({
    url: '/rangeBuild/config/querySystemConfigs',
    method: 'get',
    params: data
  })
}

export function updateSystemConfig(data) {
  return request({
    url: '/rangeBuild/config/updateSystemConfig',
    method: 'post',
    data
  })
}
